<template>
  <div class="CourseLearn">
    <van-nav-bar title="我的任务" placeholder fixed left-arrow />
    <div class="img-card" v-for="i in 19" :key="i">
      <img src="@/assets/images/login.png" />
      <div class="img-card__right">
        <div class="img-card__title">
          <span class="title">历经中外合资企业、国营股份企 </span>
        </div>
        <div class="img-card__center">
          <div class="img-card__p">
            <div>
              <span>50</span>
              金币
            </div>
            <div>
              <span>20</span>
              学分
            </div>
          </div>
          <div class="img-card__btn" v-if="false">去完成</div>
          <div class="img-card__btn is--expire">已过期</div>
        </div>
        <!-- <div class="img-card__footer">
            <div class="img-card__learn">已学习<span>75%</span></div>
           
          </div> -->
      </div>
    </div>
  </div>
</template>
  <script name="CourseLearn" setup></script>
  <style lang="scss" scoped>
.CourseLearn {
  padding: 12px 16px;
  .img-card {
    background-color: #fff;
    padding: 14px 16px;
    display: flex;
    border-radius: 4px;
    margin-bottom: 12px;
    img {
      width: 72px;
      height: 58px;
      border-radius: 4px;
    }
    &__right {
      flex: 1;
      padding-left: 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    &__title {
      .tag {
        float: left;
        text-align: center;
        line-height: 18px;
        margin-right: 10px;
        width: 32px;
        height: 18px;
        background: #d8f3e5;
        border-radius: 2px;
        font-size: 12px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #00ad6f;
      }
      .title {
        font-size: 16px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        color: #272b2d;
        line-height: 22px;
      }
    }
    &__center {
      padding: 4px 0;
      display: flex;
      align-items: center;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      justify-content: space-between;
      div {
        margin-right: 6px;
      }
      span {
        font-size: 12px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #ffac24;
      }
    }
    &__footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    &__learn {
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      span {
        font-size: 12px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #ffac24;
        padding-left: 4px;
      }
    }
    &__btn {
      width: 60px;
      height: 20px;
      border-radius: 16px;
      border: 1px solid #00c37d;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #00ad6f;
      display: flex;
      align-items: center;
      justify-content: center;
      &.is--expire{
        color: #fff;
background: #B9BDBD;
border: none;
      }
    }

    &__p{
        display: flex;
        align-items: center;
 
    }
  }
}
</style>